package com.dk.service.impl;

import com.dk.mapper.WmItemRecptMapper;
import com.dk.pojo.WmItemRecpt;
import com.dk.service.wmItemRecptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class wmItemRecptServiceImpl implements wmItemRecptService {

    @Autowired
    private WmItemRecptMapper wmItemRecptMapper;

    @Override
    public void insertitemrecpt(WmItemRecpt itemRecpt) {
        wmItemRecptMapper.insert(itemRecpt);
    }

    @Override
    public void deleteById(Long id) {
        wmItemRecptMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<WmItemRecpt> selectItemRecpt() {
        return wmItemRecptMapper.selectByExample(null);
    }

    @Override
    public void deleteAllByIds(List<String> ids) {
        wmItemRecptMapper.deleteAllByIds(ids);
    }

    @Override
    public void updateItem(WmItemRecpt itemRecpt) {
        wmItemRecptMapper.updateByPrimaryKeySelective(itemRecpt);
    }
}
